package com.nlelpct.system.feign;

import com.nlelpct.system.model.query.AuthenticationLogQueryVo;
import com.nlelpct.system.model.vo.EsAuthenticationLogReturnVo;
import com.nlelpct.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;


@FeignClient(name = "EsAuthenticationLogService", url = "${common-service.log-sms}")
public interface EsAuthenticationFeignService {

    @PostMapping("/sysManage/authentication/getSystemLogByPage")
    Result getAuthenticationLogByPage(@RequestBody AuthenticationLogQueryVo queryVo);

    @GetMapping("/sysManage/authentication/getOptLogById/{id}")
    Result getOptLogById(@PathVariable("id") String id);

    @GetMapping("/sysManage/authentication/getOperationType")
    Result getAuthenticationOperationType();

    @GetMapping("/authentication/getOptLogById/{id}")
    EsAuthenticationLogReturnVo exportAuthenticationExcelById(@PathVariable("id") String id);
}
